package cn.fintecher.pangolin.service.business.client;

import cn.fintecher.pangolin.common.model.WebSocketMessageModel;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient("common-service")
public interface WebSocketClient {

    @PostMapping("/api/webSocketMsgController/sendMsgByUserId")
    @ApiOperation(value = "发送消息", notes = "发送消息")
    ResponseEntity sendMsgByUserId(@RequestBody WebSocketMessageModel message, @RequestParam("userId") String userId);
}
